package cn.itsource.mq.config;

import com.maizi.es.annotation.EsField;
import com.maizi.es.annotation.Id;
import com.maizi.es.common.BaseEsEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class JdProduct implements BaseEsEntity<JdProduct,String> {
        @Id
        private String id ;
        @EsField(Fields = EsField.Fields.KEYWORD )
        private String sku;
        @EsField(Fields = EsField.Fields.KEYWORD )
        private String img;
        @EsField(Fields = EsField.Fields.DOUBLE )
        private String price ;
        @EsField(analysis = EsField.Analysis.IK_SMART,Fields = EsField.Fields.TEXT)
        private String title ;
        @EsField(Fields = EsField.Fields.KEYWORD )
        private String shop ;


        }
